package com.cqupt.pojo;

public class Databases {
//    数据库id
    private int databasesid;
//    数据库名称
    private String databasesname;
//    数据库ip
    private String databasesip;
//    数据库类型
    private String databasestype;
//    状态
    private String databasesstatus;
//    主机id
    private String hostid;
//    用户名
    private String username;
//    密码
    private String password;
//    端口
    private String databasesport;
//    描述
    private String databasesdescription;
//
    private String itemsid;

    /**
     * database构造函数
     * @param databasesid
     * @param databasesname
     * @param databasesip
     * @param databasestype
     * @param databasesstatus
     * @param hostid
     * @param username
     * @param password
     * @param databasesport
     * @param databasesdescription
     * @param itemsid
     */
    public Databases(int databasesid, String databasesname, String databasesip, String databasestype, String databasesstatus, String hostid, String username, String password, String databasesport,String databasesdescription,String itemsid) {
        this.databasesid = databasesid;
        this.databasesname = databasesname;
        this.databasesip = databasesip;
        this.databasestype = databasestype;
        this.databasesstatus = databasesstatus;
        this.hostid = hostid;
        this.username = username;
        this.password = password;
        this.databasesport = databasesport;
        this.databasesdescription = databasesdescription;
        this.itemsid = itemsid;
    }

    /**
     *
     * @param databasesname
     * @param databasesip
     * @param databasestype
     * @param hostid
     * @param databasesport
     * @param databasesdescription
     * @param databasesstatus
     * @param itemsid
     */
    public Databases(String databasesname, String databasesip, String databasestype, String hostid, String databasesport,String databasesdescription,String databasesstatus,String itemsid) {
        this.databasesname = databasesname;
        this.databasesip = databasesip;
        this.databasestype = databasestype;
        this.hostid = hostid;
        this.databasesport = databasesport;
        this.databasesdescription = databasesdescription;
        this.databasesstatus = databasesstatus;
        this.itemsid = itemsid;
    }

    /**
     *
     * @param databasesid
     * @param databasesname
     * @param databasesip
     * @param databasestype
     * @param hostid
     * @param databasesport
     * @param databasesdescription
     */
    public Databases(int databasesid,String databasesname, String databasesip, String databasestype, String hostid, String databasesport, String databasesdescription) {
        this.databasesid = databasesid;
        this.databasesname = databasesname;
        this.databasesip = databasesip;
        this.databasestype = databasestype;
        this.hostid = hostid;
        this.databasesport = databasesport;
        this.databasesdescription = databasesdescription;
    }

    /**
     * 获取database id
     * @return
     */
    public int getDatabasesid() {
        return databasesid;
    }

    /**
     * 获取database名称
     * @return
     */
    public String getDatabasesname() {
        return databasesname;
    }

    /**
     * 获取 database ip
     * @return
     */
    public String getDatabasesip() {
        return databasesip;
    }

    /**
     * 获取database 描述
     * @return
     */
    public String getDatabasesdescription() {
        return databasesdescription;
    }

    /**
     * 设置database 描述
     * @param databasesdescription
     */
    public void setDatabasesdescription(String databasesdescription) {
        this.databasesdescription = databasesdescription;
    }

    /**
     * 获取databases 类型
     * @return
     */
    public String getDatabasestype() {
        return databasestype;
    }

    /**
     * 获取database状态
     * @return
     */
    public String getDatabasesstatus() {
        return databasesstatus;
    }

    /**
     * 获取 host id
     * @return
     */
    public String getHostid() {
        return hostid;
    }

    /**
     * 获取 用户名
     * @return
     */
    public String getUsername() {
        return username;
    }

    /**
     * 获取密码
     * @return
     */
    public String getPassword() {
        return password;
    }

    /**
     * 获取端口
     * @return
     */
    public String getDatabasesport() {
        return databasesport;
    }

    /**
     * 设置database id
     * @param databasesid
     */
    public void setDatabasesid(int databasesid) {
        this.databasesid = databasesid;
    }

    /**
     * 设置database 名称
     * @param databasesname
     */
    public void setDatabasesname(String databasesname) {
        this.databasesname = databasesname;
    }

    /**
     * 设置database ip
     * @param databasesip
     */
    public void setDatabasesip(String databasesip) {
        this.databasesip = databasesip;
    }

    /**
     * 设置database 类型
     * @param databasestype
     */
    public void setDatabasestype(String databasestype) {
        this.databasestype = databasestype;
    }

    /**
     * 设置databse 状态
     * @param databasesstatus
     */
    public void setDatabasesstatus(String databasesstatus) {
        this.databasesstatus = databasesstatus;
    }

    /**
     * 设置host id
     * @param hostid
     */
    public void setHostid(String hostid) {
        this.hostid = hostid;
    }

    /**
     * 设置用户名
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 设置密码
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 设置database 端口
     * @param databasesport
     */
    public void setDatabasesport(String databasesport) {
        this.databasesport = databasesport;
    }

    /**
     * 重写tostring方法
     * @return
     */
    @Override
    public String toString() {
        return "Databases{" +
                "databasesid=" + databasesid +
                ", databasesname='" + databasesname + '\'' +
                ", databasesip='" + databasesip + '\'' +
                ", databasestype='" + databasestype + '\'' +
                ", databasesstatus='" + databasesstatus + '\'' +
                ", hostid='" + hostid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", databasesport='" + databasesport + '\'' +
                ", databasesdescription='" + databasesdescription + '\'' +
                '}';
    }
}
